package cn.mymall.constant;

import java.util.Collections;
import java.util.LinkedHashMap;
import java.util.Map;


public abstract class OrderStatusConstant {
	public static final String NEW = "N";						//创建
	public static final String CANCEL = "C";
	public static final String PAID = "S";						//已支付
	public static final String WAIT_SNED = "W";					//等待发货
	public static final String SNEDED = "D";					//已发货
	public static final String SUCCESS = "S";					//已完成,
	public static final String REFUND = "R";					//退款完成


	public static final String ORDER_TYPE_BMH = "BMH";

	public static final Map<String, String> ORDER_STATUS_MAP;


	public static final Map<String, String> PAYSTATUS_MAP;
	static{
		Map<String, String> tmp = new LinkedHashMap<String, String>();
		tmp.put(NEW, "等待支付");
		tmp.put(CANCEL, "取消");
		tmp.put(PAID, "已支付");
		tmp.put(SUCCESS, "已完成");
		tmp.put(REFUND, "已退款");
		tmp.put(SNEDED, "已发货");
		tmp.put(WAIT_SNED, "等待发货");
		ORDER_STATUS_MAP = Collections.unmodifiableMap(tmp);

		Map<String, String> payTmp = new LinkedHashMap<String, String>();
		payTmp.put(NEW, "未支付");
		payTmp.put(SUCCESS, "已支付");
		PAYSTATUS_MAP = Collections.unmodifiableMap(payTmp);
	}
}
